<ion-view hide-nav-bar="true">
	<ion-header-bar class="bar-dark bar-positive">
		<div class="buttons buttons-left">
			<a class="button button-clear button-icon" ui-sref="app.tasks">
				<i class="ion-ios-arrow-left"></i> 返回</a>
		</div>
		<H1 class="title"><h1 class="title">{{categoryTitle}}任务列表</h1></H1>
	</ion-header-bar>
	<ion-content class="page has-header">
		<ion-refresher pulling-icon="" pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
		<div class="push-task padding">
			<a ng-href="#/app/push-task" class="button button-outline button-assertive button-block">发布任务</a>
		</div>
		<div class="bar bar-stable" style="height:44px; display: block;">
			<h2 class="title">{{categoryTitle}}任务列表</h2>
		</div>
		<div class="taskcase-list list mt45">
			<a ng-repeat="task in tasks" ui-sref="app.task-detail({id: task.id})"
			   class="item item-thumbnail-left  mb5 line-se-t item-borderless">
				<img image-lazy-src="{{task.picture_url}}" alt="" class=" ">
				<h2><div class="task-name">{{task.property}} <i class="radius20 bg-energized f11">{{task.category}}</i> </div></h2>
				<p class="color-9 mt8">
					{{task.address}} / {{task.area||'未知'}}平方
				</p>
				<div class="row">
					<div class="col f11 color-a mt10">四室两厅</div>
					<div class="col f11 color-a text-right mt10">{{task.dateline*1000|date : 'yyyy-MM-dd hh:mm'}}</div>
				</div>
			</a>
		</div>
		<ion-infinite-scroll ng-if="moreDataCanBeLoaded()" on-infinite="loadMore()" distance="3%">
	</ion-content>
</ion-view>
